import {post,get} from '../../http/axios'

export default {
    namespaced:true,
    state:{ 
        dataList:{}
    },
    mutations:{
        set_dataList(state,dataList){
            state.dataList = dataList;
        }
    },
    actions:{
        async saveOrUpdate(context,params){
            let res = await post('/epidemic/saveOrUpdate',params);
            // console.log(res);
            return res;
        },
        async page_query(context,params){
            let res = await get('/epidemic/pageQuery',params);
            context.commit('set_dataList',res.data)
        },
    }
}